package com.gopay.common.cps.dao.gsrt.impl;

import java.io.Serializable;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.gopay.common.base.dao.impl.BaseDAOImpl;
import com.gopay.common.cps.dao.gsrt.GsrtAccountTransferDao;
import com.gopay.common.domain.gsrt.GsrtAccountTransfer;
/**
 * G商融通转账
 * @author princezhaoyt
 *
 */
@Repository("gsrtAccountTransferDao")
public class GsrtAccountTransferDaoImpl extends BaseDAOImpl<GsrtAccountTransfer, Serializable>
	implements GsrtAccountTransferDao {

	@Override
	public List<GsrtAccountTransfer> getByMerIdOrderId(String merId, String orderId) {
		String hql = "from GsrtAccountTransfer where  merCustId=:merCustId and merOrderId=:merOrderId";
		Map<String, Object> param = new HashMap<String, Object>();
		param.put("merCustId", merId);
		param.put("merOrderId", orderId);
		List<GsrtAccountTransfer> list = this.findByHql(hql, param);
		return list;
	}
	
	

}
